﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
///TeacherClass 的摘要说明
/// </summary>
public class TeacherClass
{
	public TeacherClass(){}
    public string TeacherName;//定义一个公有的类字段存储教师姓名
    public string Address; //定义一个公有的类字段存储教师地址
    private decimal _charge=-1900m;//定义教师基本工资
    //public decimal _charge = 1900m;
    public decimal Charge //定义类成员属性
    {
        get { return _charge;}
        set
        {
            if (_charge > 0)
            {
                _charge = value;
            }
            else
            {
                _charge = 0;
            }
        }
    }
}
